#ifndef SRC_PAGES_FRM04_H
#define SRC_PAGES_FRM04_H

#include "../HmiApp.h"
#include "widgets/Widgets.h"
#include "type/Types.h"
#include "misc/misc.h"
#include "widgets/Widgets.h"
#include "type/Types.h"
#include "op/DataSample.h"
#include "op/EventMgr.h"
#include "op/RCP.h"
#include "op/OpLog.h"

using namespace std;
using namespace stt;
using namespace stt::op;
using namespace stt::db;
using namespace stt::misc;
using namespace stt::data;
using namespace stt::util;
using namespace stt::constant;

/********************************
 *
 *  页面类
 *
 *  注意：用户可在指定位置添加修改内容
 *

 ********************************/
class HmiApp;

class Frm04: public STTPage {
public:
	STTButton *wMMButton1;
	STTList *wMList1;
	void wMList1_clk_cb(uint16_t code, LvEvent e);

	STTSwitch *wMSwitch1;
	void wMSwitch1_clk_cb(uint16_t code, LvEvent e);

	STTLabel *wMLabel1;
	STTButton *wMButton1;
	void wMButton1_clk_cb(uint16_t code, LvEvent e);

	STTButton *wMButton2;
	void wMButton2_clk_cb(uint16_t code, LvEvent e);

	STTButton *wMButton3;
	void wMButton3_clk_cb(uint16_t code, LvEvent e);

	STTSlider *wMSlider1;
	void wMSlider1_vch_cb(uint16_t code, LvEvent e);

	STTLabel *wMLabel2;
	STTTextArea *wMText1;
	STTButton *wMButton4;
	void wMButton4_clk_cb(uint16_t code, LvEvent e);

	STTButton *wMButton5;
	void wMButton5_clk_cb(uint16_t code, LvEvent e);

	STTButton *wMButton6;
	void wMButton6_clk_cb(uint16_t code, LvEvent e);

	STTButton *wMButton7;
	void wMButton7_clk_cb(uint16_t code, LvEvent e);

	STTSlider *wMSlider2;
	void wMSlider2_vch_cb(uint16_t code, LvEvent e);

	STTLabel *wMLabel3;
public:
	Frm04(HmiApp *app, STTWidget *par, const string &id, const string &desc = "");
	virtual ~Frm04();
	void onInit();
	void createParts();
	void onLoad();
	bool onClosing();
	void onDispose();
	/*CUSTOM_CODE_BEGIN*/
	/*CUSTOM_CODE_END*/

protected:
	HmiApp *hmiApp;
};

#endif
